package com.by.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@TableName
public class Spu {
    @TableId(value = "spu")
    @ApiModelProperty(name = "spu id", notes = "")
    private Integer spuId;

    /**
     * 品牌ID
     */
    @ApiModelProperty(name = "品牌ID", notes = "")
    private Integer brandId;
    /**
     * 分类ID
     */
    @ApiModelProperty(name = "分类ID", notes = "")
    private Integer categoryId;

    /**
     * 商品名称
     */
    @ApiModelProperty(name = "商品名称", notes = "")
    private String name;

    @ApiModelProperty(name = "店铺分类ID", notes = "", hidden = true)
    private Integer shopCategoryId;
    /**
     * 店铺id
     */
    @ApiModelProperty(name = "店铺id", notes = "", hidden = true)
    private Integer shopId;

    /**
     * 卖点
     */
    @ApiModelProperty(name = "卖点", notes = "")
    private String sellingPoint;
    /**
     * 商品介绍主图
     */
    @ApiModelProperty(name = "商品介绍主图", notes = "")
    private String mainImgUrl;
    /**
     * 商品图片 多个图片逗号分隔
     */
    @ApiModelProperty(name = "商品图片 多个图片逗号分隔", notes = "")
    private String imgUrls;
    /**
     * 商品视频
     */
    @ApiModelProperty(name = "商品视频", notes = "")
    private String video;
    /**
     * 售价，整数方式保存
     */
    @ApiModelProperty(name = "售价，整数方式保存", notes = "")
    private BigDecimal priceFee;
    /**
     * 市场价，整数方式保存
     */
    @ApiModelProperty(name = "市场价，整数方式保存", notes = "")
    private BigDecimal marketPriceFee;
    /**
     * 状态 -1:删除, 0:下架, 1:上架
     */
    @ApiModelProperty(name = "状态 -1:删除, 0:下架, 1:上架", notes = "")
    private int status;
    /**
     * sku是否含有图片 0无 1有
     */
    @ApiModelProperty(name = "sku是否含有图片 0无 1有", notes = "")
    private int hasSkuImg;
    /**
     * 序号
     */
    @ApiModelProperty(name = "序号", notes = "")
    private int seq;


    @TableField(exist = false)
    List<Attr> attrs;

    @TableField(exist = false)
    List<Sku> skuList;

    @TableField(exist = false)
    String detail;
}
